#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QListWidgetItem>
#include <QFileDialog>
#include <QMediaPlayer>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void searchMusic();
    void playMusic();

private slots:
    void on_listWidget_itemDoubleClicked(QListWidgetItem *item);

    void on_pushButton_clicked();

    void on_Search_pbtn_clicked();

    void on_searchMusiclineEdit_returnPressed();

    void on_prevPbtn_clicked();

    void on_nextPbtn_clicked();

    void on_nextPbtn_2_clicked();

    void on_nextPbtn_3_clicked();

private:
    Ui::MainWindow *ui;
    QString dirPath;
    QMediaPlayer * play;
};
#endif // MAINWINDOW_H
